class MyWorker < ActiveBackground::Worker
  def work
    # work_on :all
    # get a connection
    
    1.times do
      database do
        @persons = Person.find(:all)
      end
    end
    
    @logger.info('MyWorker: worked')
  end
    
  def task_find_feed
    @logger.info('MyWorker: find feed')
  end
  
  def task_fetch_website
    @logger.info('MyWorker: fetch website')
  end
  
  def task_fetch_images
    @logger.info('MyWorker: fetch images')
  end
  
  def task_index_feed
    @logger.info('MyWorker: index feed')
  end
  
  def task_store
    @logger.info('MyWorker: store')
  end
end